<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="PhotoController.*,CommunityController.*,java.util.*, java.io.*,java.sql.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src="/KOMORIUTA/Main/OldMain/abc.js" type="text/JavaScript"></script>
<script src="/KOMORIUTA/Main/OldMain/jquery.js" type="text/javascript"></script> 
<link rel="STYLESHEET" type="text/css" href="/KOMORIUTA/css/young_photo.css">
<style type="text/css">
a:link, a:visited, a:active{color: black; text-decoration:none;}
a:hover{text-decoration:underline;}
</style>
</head>
<%
ArrayList<PhotoYoungBean> datas=(ArrayList<PhotoYoungBean>)request.getAttribute("list");
ArrayList<FreeBoardBean> datas2=(ArrayList<FreeBoardBean>)request.getAttribute("list2");
ArrayList<BCBoardBean> datas3=(ArrayList<BCBoardBean>)request.getAttribute("list3");
String nick=(String)session.getAttribute("Mem_Nick");

%>
<body  bgproperties="fixed" oncontextmenu="return false" ondragstart="return false" onselectstart="return false">
<div style="position:relative; top:-20px;width:700px; height:200px; border:0px solid green;">
	<table width="650" height="20" border="0" cellpadding="0" cellspacing="0">
		<tr  style="font-size:13px;">
			<td width="60" >&nbsp;</td>
			<td width="60" >&nbsp;</td>
			<td id="aaa" align="right" align="center" width="160" onClick="ddd()"  style="cursor:pointer;" >
			<div id="kodomo" >
				<span  style="position:relative;left:-10px;top:8px;font-size:15px;font-weight:bold; ">子供の写真</span>
			</div>
			</td> 
			<td id="bbb" align="right" width="160" onClick="bbb()"  style="cursor:pointer;" ><div id="oldp" ><span  style="position:relative;left:-10px;top:8px;font-size:15px;font-weight:bold;">シッターの写真</span></div></td>
			<td id="ccc" align="right" width="160" onClick="ccc()"  style="cursor:pointer;" ><div id="freep" ><span  style="position:relative;left:-15px;top:8px;font-size:15px;font-weight:bold;">他の写真</span></div></td>
		</tr>
	</table>

	<div id="hide_div">
<div style="position:relative;top:5px;left:5px;width:690px;height:190px;background-color:#ffffff">
		<div style="position:relative;top:0px;left:0px;">
		<table border="0" width="620" height="200" cellpadding="0" cellspacing="0">
				<tr>
				<%
				for(PhotoYoungBean photoYoungBean:datas){	
					String nick2=(String)session.getAttribute("Mem_Nick");
					if(nick2.equals("Guest")){
				%>
				<td align="center" bgcolor="">
				<div style="position:relative;left:5px;top:5px;width:140px;height:140px;border:1px solid #C0C0C0;">
				<img src="/KOMORIUTA/Applications/Young/photo/<%= photoYoungBean.getBbp_photo() %>"  width="130" height="130" />
				</div>
				</td>
				<%
					}else{
				%>
				<td align="center" bgcolor="">
				<div style="position:relative;left:5px; top:5px;width:140px;height:140px;border:1px solid #C0C0C0;">
				<a href="/KOMORIUTA/PhotoYoungAction.do?action=pt_young_list&id=<%=photoYoungBean.getID() %>&nick=<%=nick %>">
				<img src="/KOMORIUTA/Applications/Young/photo/<%= photoYoungBean.getBbp_photo() %>"  width="130" height="130" />
				</a>
				</div>
				</td>
				<%
					}
				}
				%>
				</tr>
			</table>
			</div>
		</div>
	</div>
	<div id="hide_div2">
		<table>
			<tr>
				<td align="center" bgcolor="">
				<div id="ccc_photo2" ></div>
			  	</td>
			</tr>
		</table>
	</div>

	<div id="hide_div3">
		<table>
			<tr>
						
				<td align="center" bgcolor="">
				<div id="ccc_photo3" ></div>
			  	</td>
			  
			</tr>
		</table>
	</div>
</div>	
	<br/>
	
	
<table width="700" cellpadding="0" cellspacing="0" >
	<tr>
		<td valign="top">
			<table width="340" cellpadding="0" cellspacing="0" style="border: 1px solid #60b615">
				<tr>
					<td colspan="2">
						<A HREF=javascript:cm_free_list()>
						<img alt="" src="<%=request.getContextPath() %>/Main/OldMain/images/Content_commu_O.png">
						</A>
				
					</td>
				</tr>
				
				<%	for(FreeBoardBean freeBoardBean:datas2){ %>
	        	<tr>
	        		<td height="20" width="100" align="center" style="font-size: 14px;"><%= freeBoardBean.getB_date() %>&nbsp;&nbsp;</td>
		          	
		          	<td height="20" width="240" align="left">
		          		<div style="width:230px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; ">
		          		<% if(nick.equals("Guest")){%>
		          			<%=freeBoardBean.getTitle() %>		          		
		          		<%}else{ %>
		          			<a href="/KOMORIUTA/FreeBoardAction.do?action=cm_free_read&id=<%=freeBoardBean.getId() %>&nick=<%=nick %>"><%=freeBoardBean.getTitle() %></a>		          		
		          		<%} %>
		          		</div>
		          	</td>
				</tr>
				<tr height="5"><td></td></tr>
				<% } %>
			</table>
		</td>
		
		<td width="20">&nbsp;</td>
		
		<td valign="top">
			<table width="340" cellpadding="0" cellspacing="0" style="border: 1px solid #60b615">
				<tr>
					<td colspan="2" >
						<A HREF=javascript:cm_bc_list()>	
						<img alt="" src="<%=request.getContextPath() %>/Main/OldMain/images/Content_photo_O.png">
						</A>
					</td>
				</tr>
				<%	for(BCBoardBean bCBoardBean:datas3){ %>
				<tr> 
					<td height="20" width="100" align="center" style="font-size: 14px;"><%= bCBoardBean.getBc_date() %>&nbsp;&nbsp;</td>
					
					<td height="20" width="240" align="left">
						<div style="width:230px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; ">
						<% if(nick.equals("Guest")){%>
						<%=bCBoardBean.getBc_title() %>
						<%}else{ %>
						<a href="/KOMORIUTA/BCBoardAction.do?action=cm_bc_read&id=<%=bCBoardBean.getId() %>&nick=<%=nick %>"><%=bCBoardBean.getBc_title() %></a>
						<%} %>
						</div>
					</td>
				</tr>
				<tr height="5"><td></td></tr>
				<%} %>
			</table>
		</td>
	</tr>
</table>

	
	
	
	
	
	
<!-- 	
	<div style="position:relative;height:20px;"></div>
	<div id="hide_div4">
		<div style="position:relative; float:left;left:0px; width:320px; height:200px; border:0px solid #26932e;">
			<div style="position:relative; left:0px; width:320px; height:20px; background-color:#60B615;border:0px solid #26932e;border-bottom-style:solid;border-top-style:none;border-right-style:none;border-left-style:none;color:#560689;font-size:12px;">
				<span>::: 많이 읽은 자유게시판 :::</span>
			</div>
			<div style="height:5px;"></div>
			<div style="position:relative; left:0px; width:320px; height:20px; border:1px solid #26932e;border-bottom-style:solid;border-top-style:solid;border-right-style:none;border-left-style:none;color:#560689;font-size:12px;">
			<table border="0">
				<tr>
					<td width="30">NO |</td>
					<td width="130">タイトル</td>
					<td width="80">| ユーザー名 |</td>
					<td width="50">アクセス</td>
				</tr>
			</table>
			</div>
		<%
			for(FreeBoardBean freeBoardBean:datas2){
			%>
		<div style="position:relative; left:0px; width:320px; height:25px; border:1px solid #26932e; border-bottom-style:dashed;border-top-style:none;border-right-style:none;border-left-style:none;color:#560689;font-size:12px;">
			<table width="320" border=0 cellpadding=0 cellspacing="0">
			<tr height="25" id="abc"> 
				<td width="30"><%= freeBoardBean.getId() %></td>
				<%
				String nick2=(String)session.getAttribute("Mem_Nick");
				if(nick2.equals("Guest")){
				%>
				<td width="150"><%=freeBoardBean.getTitle() %></td>
				<%
				}else{
				%>
				<td width="150">
				<div style="position:relative;width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; "> 
				<a  class="black" href="/KOMORIUTA/FreeBoardAction.do?action=cm_free_read&id=<%=freeBoardBean.getId() %>&nick=<%=nick %>"><%=freeBoardBean.getTitle() %></a></td>
				</div>
				<%
				}
				%>
				<td width="50"><%=freeBoardBean.getNick() %></td>
				<td width="50" align="center"><%=freeBoardBean.getViewcount() %></td>
			</tr>
			</table>
			</div>
		<%
			}
		 %>
		 </div> 
		 
		 <div style="position:relative; float:left; left:20px; width:320px; height:200px;border:0px solid #26932e;">
			<div style="position:relative; left:0px; width:320px; height:20px; background-color:#60B615;border:0px solid #26932e;border-bottom-style:solid;border-top-style:none;border-right-style:none;border-left-style:none;color:#560689;font-size:12px;">
				<span>::: 많이 읽은 babycare 게시판 :::</span>
			</div>
			<div style="height:5px;"></div>
			<div style="position:relative; left:0px; width:320px; height:20px; border:1px solid #26932e;border-bottom-style:solid;border-top-style:solid;border-right-style:none;border-left-style:none;color:#560689;font-size:12px;">
			<table border="0">
				<tr>
					<td width="30">NO |</td>
					<td width="130">タイトル</td>
					<td width="80">| ユーザー名 |</td>
					<td width="50">アクセス</td>
				</tr>
			</table>
			</div>
		<%
			for(BCBoardBean bCBoardBean:datas3){
		%>
		<div style="position:relative; left:0px; width:320px; height:25px; border:1px solid #26932e; border-bottom-style:dashed;border-top-style:none;border-right-style:none;border-left-style:none;color:#560689;font-size:12px;">
			<table width="320" border=0 cellpadding=0 cellspacing="0" style="table-layout:fixed;">
			<tr height="25" id="abc"> 
				<td width="30"><%= bCBoardBean.getId() %></td>
				<%
				String nick2=(String)session.getAttribute("Mem_Nick");
				if(nick2.equals("admin")){
				%>
				<td width="150"><%=bCBoardBean.getBc_title() %></td>
				<%
				}else{
				%>
				<td width="150"  style="text-overflow:ellipsis; overflow:hidden;"><nobr>
				<div style="position:relative;width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; "> 
				<a  class="black" href="/KOMORIUTA/BCBoardAction.do?action=cm_bc_read&id=<%=bCBoardBean.getId() %>&nick=<%=nick %>">
				<%=bCBoardBean.getBc_title() %>
				</a>
				</div></nobr></td>
				<%
				}
				%>
				<td width="60"><%=bCBoardBean.getBc_nick() %></td>
				<td width="65" align="center"><%=bCBoardBean.getBc_viewcount() %></td>
			</tr>
			</table>
			</div>
		<%
			}
		 %>
		 </div> 
	</div>
</div>
 -->
</body>
</html>